package com.ruoyi.visualization.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.visualization.mapper.XianHousePriceMapper;
import com.ruoyi.visualization.domain.XianHousePrice;
import com.ruoyi.visualization.service.IXianHousePriceService;

/**
 * 房价预测可视化Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-30
 */
@Service
public class XianHousePriceServiceImpl implements IXianHousePriceService
{
    @Autowired
    private XianHousePriceMapper xianHousePriceMapper;

    /**
     * 获取房价趋势数据
     * 
     * @param areaName 区域名称
     * @param startQuarter 开始月份
     * @param endQuarter 结束月份
     * @return 房价趋势数据
     */
    @Override
    public List<XianHousePrice> selectPriceTrend(String areaName, String startQuarter, String endQuarter)
    {
        return xianHousePriceMapper.selectPriceTrend(areaName, startQuarter, endQuarter);
    }

    /**
     * 获取区域列表
     * 
     * @return 区域名称列表
     */
    @Override
    public List<String> selectAreaList()
    {
        return xianHousePriceMapper.selectAreaList();
    }
}
